package org.user.server.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;
import org.user.server.bean.User;

@RestController
public class UserController {
	
	@GetMapping("/getUserName")
	public String getUserName(){
		
		return "userName";  
	}
	
	
	
	@GetMapping("/getUserInfo")
	public User getUserInfo(){
		User user = new User();
		user.setId(1000L);
		user.setUsername("username");
		return user;  
	}
	
	
	
}
